QT += core gui widgets multimedia  multimediawidgets

TARGET = MeteorPlayer2
DEFINES += VERSION_MAJOR="2"
DEFINES += VERSION_MINOR="0"
DEFINES += VERSION_BUILD="1"

TRANSLATIONS = player_it.ts

#release: DEFINES += QT_NO_DEBUG_OUTPUT

INCLUDEPATH += \
    src/ \
    src/application/ \
    src/dialogs/ \
    src/lightScene/ \
    src/lightScene/GUI/ \
    src/playlist/ \
    src/playlist/mediaWidgets/ \
    src/script/ \
    src/script/GUI/ \
    src/sequence/ \
    src/sequence/GUI/ \
    src/show/ \
    src/show/GUI \
    src/viewer/ \
    resources/

HEADERS += \
    src/application/ApplicationFactory.h \
    src/dialogs/mainwindow.h \
    src/lightScene/dmxinterface.h \
    src/lightScene/GUI/LevelViewForPreset.h \
    src/lightScene/GUI/lightControlGuiFactory.h \
    src/lightScene/GUI/LightPresetPlaybar.h \
    src/lightScene/GUI/LightsetPainter.h \
    src/lightScene/GUI/QtDmxSliderPanel.h \
    src/lightScene/GUI/QtLightControlPanel.h \
    src/lightScene/IF_DmxSliderPanel.h \
    src/lightScene/IF_lighttransitionengine.h \
    src/lightScene/LightEngine.h \
    src/lightScene/LightPresetData.h \
    src/lightScene/lightpresetmodel.h \
    src/lightScene/lighttransitionengine.h \
    src/playlist/mediaWidgets/swiftslider.h \
    src/playlist/mediaWidgets/volumeslider.h \
    src/playlist/playlistPainter.h \
    src/application/ITimerService.h \
    src/sequence/sequenceitem.h \
    src/sequence/sequencerunner.h \
    src/show/showfileparser.h \
    src/show/ShowFileStrings.h \
    src/viewer/ActionListView.h \
    src/lightScene/GUI/LightPresetDelegate.h \
    src/viewer/ActionListPainter.h \
    src/dialogs/LightSetEditor.h \
    src/playlist/MediaListModel.h \
    src/playlist/mediaWidgets/mediaPositionSlider.h \
    src/show/ApplicationSettings.h \
    src/script/scriptViewer.h \
    src/show/HtmlOptimizer.h \
    src/show/ShowManager.h \
    src/show/ShowFileFormatter.h \
    src/dialogs/ScriptActionLauncher.h \
    src/script/GUI/ActionHoverDetection.h \
    src/dialogs/ActionTargetSelectorDialog.h \
    src/viewer/modelViewRules.h \
    src/playlist/AbstractMediaSource.h \
    src/application/QtTimerService.h \
    src/sequence/SequenceModel.h \
    src/dialogs/SequenceItemEditor.h \
    src/sequence/IF_SequenceEngineInterface.h \
    src/sequence/GUI/SequenceGuiFactory.h \
    src/sequence/SequenceFunctionFactory.h \
    src/script/IF_ActionSelectorInterface.h \
    src/script/ScriptActionCreator.h \
    src/script/ScriptEngine.h \
    src/script/IF_ScriptViewerInterface.h \
    src/script/ScriptFunctionFactory.h \
    src/script/GUI/ScriptGuiFactory.h \
    src/script/ScriptActionTrigger.h \
    src/script/IF_ScriptEngineInterface.h \
    src/script/HighLightTextViewer.h \
    src/show/ShowLoader.h \
    src/show/ShowFactory.h \
    src/show/IF_ShowGuiInterface.h \
    src/show/GUI/ShowFileGui.h \
    src/playlist/MediaEngine.h \
    src/lightScene/IF_GuiLightControlPanel.h \
    src/playlist/PlaylistFunctionFactory.h \
    src/playlist/IF_MediaEngineInterface.h \
    src/playlist/AudioVideoSource.h \
    src/playlist/MediaSourceFactory.h \
    src/playlist/mediaWidgets/PlaylistGuiFactory.h \
    src/dialogs/AudioVideoPlayBar.h \
    src/playlist/AudioVideoAutomation.h \
    src/viewer/ActionListController.h \
    src/lightScene/LightPresetFactory.h \
    src/lightScene/LightFunctionFactory.h \
    src/lightScene/IF_LightEngineInterface.h \
    src/playlist/mediaWidgets/FullScreenVideoWidget.h \
    src/show/ShowWriter.h \
    src/show/FileInport.h \
    src/playlist/Fader.h \
    src/playlist/ExponentialFader.h \
    src/show/ShowFileFactory.h \
    src/sequence/GUI/SequencePlaybar.h \
    src/sequence/GUI/SequencePainter.h \
    src/sequence/GUI/SequenceItemDelegate.h \
    src/playlist/mediaWidgets/MediaToolbar.h \
    src/sequence/GUI/SequenceControlPanel.h \
    resources/ApplicationIcon.h \
    resources/supported_files.h \
    src/playlist/PictureSource.h \
    src/playlist/PictureAutomation.h \
    src/playlist/IF_PictureEngineInterface.h \
    src/playlist/PictureEngine.h \
    src/dialogs/PicturePlaybar.h \
    src/dialogs/PlaylistBar.h \
    src/application/testableAssert.h \
    src/playlist/PlaylistView.h



SOURCES += \
    src/application/main.cpp \
    src/application/ApplicationFactory.cpp \
    src/dialogs/mainwindow.cpp \
    src/lightScene/dmxinterface.cpp \
    src/lightScene/GUI/LevelViewForPreset.cpp \
    src/lightScene/GUI/lightControlGuiFactory.cpp \
    src/lightScene/GUI/LightPresetPlaybar.cpp \
    src/lightScene/GUI/LightsetPainter.cpp \
    src/lightScene/GUI/QtDmxSliderPanel.cpp \
    src/lightScene/GUI/QtLightControlPanel.cpp \
    src/lightScene/LightEngine.cpp \
    src/lightScene/LightPresetData.cpp \
    src/lightScene/lightpresetmodel.cpp \
    src/lightScene/lighttransitionengine.cpp \
    src/playlist/mediaWidgets/swiftslider.cpp \
    src/playlist/playlistPainter.cpp \
    src/sequence/sequenceitem.cpp \
    src/sequence/sequencerunner.cpp \
    src/show/showfileparser.cpp \
    src/viewer/ActionListView.cpp \
    src/lightScene/GUI/LightPresetDelegate.cpp \
    src/viewer/ActionListPainter.cpp \
    src/dialogs/LightSetEditor.cpp \
    src/playlist/MediaListModel.cpp \
    src/show/ApplicationSettings.cpp \
    src/script/scriptViewer.cpp \
    src/show/HtmlOptimizer.cpp \
    src/show/ShowManager.cpp \
    src/show/ShowFileFormatter.cpp \
    src/dialogs/ScriptActionLauncher.cpp \
    src/script/GUI/ActionHoverDetection.cpp \
    src/dialogs/ActionTargetSelectorDialog.cpp \
    src/playlist/AbstractMediaSource.cpp \
    src/application/QtTimerService.cpp \
    src/sequence/SequenceModel.cpp \
    src/dialogs/SequenceItemEditor.cpp \
    src/sequence/GUI/SequenceGuiFactory.cpp \
    src/sequence/SequenceFunctionFactory.cpp \
    src/script/ScriptActionCreator.cpp \
    src/script/ScriptEngine.cpp \
    src/script/ScriptFunctionFactory.cpp \
    src/script/GUI/ScriptGuiFactory.cpp \
    src/script/HighLightTextViewer.cpp \
    src/show/ShowLoader.cpp \
    src/show/ShowFactory.cpp \
    src/show/GUI/ShowFileGui.cpp \
    src/playlist/MediaEngine.cpp \
    src/playlist/PlaylistFunctionFactory.cpp \
    src/playlist/AudioVideoSource.cpp \
    src/playlist/MediaSourceFactory.cpp \
    src/playlist/mediaWidgets/PlaylistGuiFactory.cpp \
    src/dialogs/AudioVideoPlayBar.cpp \
    src/playlist/AudioVideoAutomation.cpp \
    src/viewer/ActionListController.cpp \
    src/lightScene/LightPresetFactory.cpp \
    src/lightScene/LightFunctionFactory.cpp \
    src/playlist/mediaWidgets/FullScreenVideoWidget.cpp \
    src/show/ShowWriter.cpp \
    src/show/FileInport.cpp \
    src/playlist/Fader.cpp \
    src/playlist/ExponentialFader.cpp \
    src/show/ShowFileFactory.cpp \
    src/sequence/GUI/SequencePlaybar.cpp \
    src/sequence/GUI/SequencePainter.cpp \
    src/sequence/GUI/SequenceItemDelegate.cpp \
    src/sequence/GUI/SequenceControlPanel.cpp \
    src/playlist/PictureSource.cpp \
    src/playlist/PictureAutomation.cpp \
    src/playlist/PictureEngine.cpp \
    src/dialogs/PicturePlaybar.cpp \
    src/dialogs/PlaylistBar.cpp \
    src/application/testableAssert.cpp \
    src/playlist/PlaylistView.cpp



FORMS += \
    src/dialogs/mainwindow.ui \
    src/dialogs/AudioVideoPlayBar.ui \
    src/lightScene/GUI/LightPresetPlaybar.ui \
    src/dialogs/LightSetEditor.ui \
    src/dialogs/ScriptActionLauncher.ui \
    src/dialogs/ActionTargetSelectorDialog.ui \
    src/dialogs/SequenceItemEditor.ui \
    src/sequence/GUI/SequencePlaybar.ui \
    src/dialogs/PicturePlaybar.ui

RC_FILE = resources/exe_icon.rc

OTHER_FILES += \
    TBD.txt


#__stdcall is the standard for WIN32 API only
win32: DEFINES += DLL_IMPORT="__stdcall"
unix: DEFINES += DLL_IMPORT=""
android: DEFINES += DLL_IMPORT=""

CONFIG(debug, debug|release){
    CFG=debug
}else{
    CFG=release
}

win32 {
   SRCDIR_WIN = $$PWD
   SRCDIR_WIN ~= s,/,\\,g
   DESTDIR_WIN = $$OUT_PWD
   DESTDIR_WIN ~= s,/,\\,g
   QMAKE_POST_LINK += mkdir $${DESTDIR_WIN}\\$${CFG}\res &
   QMAKE_POST_LINK += xcopy /E /Y $${SRCDIR_WIN}\res  $${DESTDIR_WIN}\\$${CFG}\res &
   QMAKE_POST_LINK += xcopy /Y $${SRCDIR_WIN}\dmx\dll\*  $${DESTDIR_WIN}\\$${CFG}
}


